package com.hy.study.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.HashMap;
import java.util.Map;

/**
 * @author huyong
 * @date 2024 年 01 月 08 日 14:31: 49
 */
@Controller
@Scope("prototype")
public class ThymeleafController {

    @GetMapping("/helloHtml")
    public String hello(Map<String, String> map) {
        map.put("hello", "this data is from backing server");
        return "helloHtml";
    }
}
